<?php

/**
 * AccountSettingDAO
 *
 */
class AccountSettingDAO
{
    public function insert($cateId, $path, $thumb) {
        $db = Yii::app()->db;
        $deleteFlag = Constants::DELETE_FLAG_TRUE;

        $sql = 'INSERT INTO account_setting(accout_id,path,thumb,create_date,update_date) VALUES '
        .'(:cateId,:path,:thumb,NOW(),NOW())';

        $command = $db->createCommand($sql);
        $command->bindParam(':cateId', $cateId);
        $command->bindParam(':path', $path);
        $command->bindParam(':thumb', $thumb);
        $command->execute();

        return TRUE;
    }

}